-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update SARIF format #534
Update SARIF format #534
Conversation
Codecov Report
@@ Coverage Diff @@
## main #534 +/- ##
==========================================
+ Coverage 77.05% 78.36% +1.31%
==========================================
Files 76 77 +1
Lines 5129 5251 +122
==========================================
+ Hits 3952 4115 +163
+ Misses 1011 971 -40
+ Partials 166 165 -1
|
cmd/osv-scanner/main_test.go
Outdated
"name": "osv-scanner", | ||
"rules": [ | ||
{ | ||
"id": "GHSA-whgm-jr23-g3j9", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have an end-to-end test here that includes CVE, Ecosystem ID examples etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a bigger test with CVE's and multiple ecosystems, not as an end-to-end test but a unit test since it makes the path resolution easier. It already found some problems with CVEs not actually being the display ID, which should be fixed now.
Do you still want a bigger end-to-end test as well?
Fixes #216 with a new format that separates out individual vulnerabilities.
Each vulnerability is now it's own rule violation. The aliased vulnerabilities are grouped together as one rule violation, with an ID picked in this priority (CVE -> [Eco Specific] -> GHSA).